/**
 * Created by xiang on 03/04/2017
 */
/**
 * 从入学年份获取年级，8月份为升级界限
 * @returns {number} 高一1；高二2；高三3；毕业>3
 */
const getGrade = function (gradeYear) {
    let current = new Date();
    let grade = 4;
    if(current.getMonth()>=7){
      grade = current.getFullYear()-gradeYear+1;
    }else{
      grade = current.getFullYear()-gradeYear;
    }
    return grade;
};


export default {
    getGrade
}
